package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicTypeGs;
import cn.stylefeng.guns.modular.basic.model.params.BasicTypeGsParam;
import cn.stylefeng.guns.modular.basic.model.params.BasicTypeParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicTypeGsResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wzh
 * @since 2024-01-12
 */
public interface BasicTypeGsService extends IService<BasicTypeGs> {

    /**
     * 新增
     *
     * @author wzh
     * @Date 2024-01-12
     */
    void add(BasicTypeGsParam param);

    /**
     * 删除
     *
     * @author wzh
     * @Date 2024-01-12
     */
    void delete(BasicTypeGsParam param);

    /**
     * 更新
     *
     * @author wzh
     * @Date 2024-01-12
     */
    void update(BasicTypeGsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wzh
     * @Date 2024-01-12
     */
    BasicTypeGsResult findBySpec(BasicTypeGsParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wzh
     * @Date 2024-01-12
     */
    List<BasicTypeGsResult> findListBySpec(BasicTypeGsParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wzh
     * @Date 2024-01-12
     */
     LayuiPageInfo findPageBySpec(BasicTypeGsParam param,String condition);

    List<BasicTypeGsResult> list2(BasicTypeGsParam basicTypeGsParam);
}
